package cn.jcet.gumall.ware.fegin;

import cn.jcet.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 鲜磊
 * @Date 2020/7/15 22:05
 */
@FeignClient("gulimall-product")
public interface ProductFigenService {

    /**
     * 两种调用方式，可以直接给网关发送请求，带上api前缀
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);


}
